package com.yang.commands;

import com.yang.guis.BoxGui;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class OpenGrade implements CommandExecutor {
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (label.equalsIgnoreCase("openGrade") && sender instanceof Player){
            Player player = (Player) sender;
            // 打开GUI页面
            BoxGui.boxGui(player);
        }
        return false;
    }
}
